<?php
//--------------------------------------------------
// Patch file:	patch_acp_log.php
// Patch time:	Wed 2 May 2007, 14:52 (GMT)
//--------------------------------------------------

if ( !defined('IN_PHPBB') )
{
	die('Hack attempt');
}

// header
$patch_version = '1.8.3';
$patch_date = '20070511';
$patch_author = 'impleri';
$patch_ref = 'Added options to config table for log config and log control panel';

// panels and fields
$patch_data = array(
	'acp' => array(
		'name' => 'Admin_control_panel',
		'options' => array(

			'logcp' => array(
				'name' => 'Logs_cp',
				'auth' => array(POST_PANELS_URL => 'access'),
				'options' => array(
					'manage' => array(
						'name' => 'Logs_manage',
						'file' => 'includes/acp/acp_advlog_manage',
						'auth' => array(POST_PANELS_URL => 'access'),
					),
					'config' => array(
						'name' => 'Logs_config',
						'file' => 'includes/acp/acp_generic',
						'auth' => array(POST_PANELS_URL => 'access'),
						'fields' => array(
							'log_notify' => array('type' => 'radio_list', 'legend' => 'Allow_log_notify', 'explain' => 'Allow_log_notify_explain', 'options' => '[var]list_no_yes', 'field' => 'log_notify'),
							'log_user_ip_action_url' => array('type' => 'varchar', 'legend' => 'Log_user_ip_action_url', 'explain' => 'Log_user_ip_action_url_explain', 'field' => 'log_user_ip_action_url'),
							'logs_ppage' => array('type' => 'int', 'legend' => 'Logs_per_page', 'field' => 'logs_per_page', 'value_mini' => '15'),
						),
					),
				),
			),
		),
	),
);


// auths definitions
$patch_auths = array(
	POST_FORUM_URL => array(
		'auth_log_notify' => array(),
	),
	POST_PANELS_URL => array(
		'auth_manage' => array(),
		'access' => array(
			GROUP_ADMIN => array('acp.logcp' => true, 'acp.logcp.config' => true, 'acp.logcp.manage' => true),
		),
	),
);

?>